public class Main {
    public static int Max(int a,int b) {
        if(a>b){
            return a;
        }else {
            return b;
        }


    }
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = 30;
        int d = Max(a,b);
        int max = Max(d,c);
        System.out.println(max);

    }
}